<template>
    <div>
        test
        <!-- {{$store.state.poi}} -->
        <button @click="change">change</button>
        
    </div>
</template>
<script>
export default({
    methods:{
        change(){
            console.log(this.$store.state.poi)          //获取全局变量state
            console.log(this.$store.getters.hello)      //调用getters
            this.$store.commit("edit")          //调用全局mutations方法
            this.$store.dispatch("helloa")      //调用actions方法
        },
        
    }
})
</script>
